public class Student {
    //1.编写一个Student类，包含name、gender、age、id、score属性，分别为String、String、int、int、double类型。
    String name;
    String gender;
    int age;
    int id;
    double score;
    //2.类中声明一个say方法，返回String类型，方法返回信息中包含所有属性值
    public Student(String name,String gender,int age,int id,double score){
        this.name=name;
        this.gender=gender;
        this.age=age;
        this.id=id;
        this.score=score;
    }
    public String say(){
        return "名字："+name+"\n性别："+gender+"\n年龄："+age+"\nid："+id+"\n成绩："+score;
    }
}
